﻿-- ================================================
-- Template generated from Template Explorer using:
-- Create Procedure (New Menu).SQL
--
-- Use the Specify Values for Template Parameters 
-- command (Ctrl-Shift-M) to fill in the parameter 
-- values below.
--
-- This block of comments will not be included in
-- the definition of the procedure.
-- ================================================
USE [WarehouseManagement]
GO

SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author:		AnhDQ
-- Create date: 3/22/2011
-- Description:	This stored procedure use to insert an Contact record
-- =============================================
ALTER PROCEDURE [InsertContact]
(
@FullName NVARCHAR(50), 
@MobilePhone VARCHAR(50),
@PartnerID INT
)
AS
BEGIN
	
	INSERT INTO Contact
	(
	FullName, 
	MobilePhone,
	PartnerID
	) 
	VALUES
	(
	@FullName, 
	@MobilePhone,
	@PartnerID
	)
		
END

/*
USE WarehouseManagement
GO
SELECT * FROM Contact

EXEC [InsertContact] @FullName = 'Sir Zero',@MobilePhone = 'XXXXXXXXXX', @PartnerID = 2
*/